package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 天鹅类
 * 2022/3/11 17:56
 *
 * @Author by ling
 */

public class Swan extends Bird implements Flyable, Swimmable {
    public Swan() {
        setSpeciesName("天鹅");
    }

    @Override
    public void feed() {
        System.out.println("天鹅父母双方共同养育后代");
    }

    @Override
    public void eat() {
        System.out.println("天鹅主要以水生植物为食，也吃螺类和软体动物");
    }

    @Override
    public void swim() {
        System.out.println("天鹅游泳很优雅");
    }

    @Override
    public void fly() {
        System.out.println("天鹅可以长途飞行");
    }
}
